import { getCategory } from '@/api/info'
const state = {
  cateList: []
}
const mutations = {
  setCateList (state, data) {
    state.cateList = data
  }
}
const actions = {
  async getCateList (content) {
    console.log(1)
    const { data: res } = await getCategory()
    content.commit('setCateList', res.data.data)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
